﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test_Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Scripts/extjs/resources/css/ext-all.css" />
    <script type="text/javascript" src="../Scripts/extjs/ext-all-debug.js"></script>
    <link rel="stylesheet" type="text/css" href="../Scripts/extjs/tabs/tabs.css" />
    <script type="text/javascript">
    Ext.require('Ext.tab.*');

    Ext.onReady(function () {
        // second tabs built from JS
        var tabs2 = Ext.createWidget('tabpanel', {
            title: 'Accordion Item',
            renderTo: document.getElementById('dvTab'),
            activeTab: 0,
            height: 600,
            plain: true,
            defaults: {
                autoScroll: true,
                bodyPadding: 10
            },
            items: [{
                title: 'Tab 1',
                html: "My content was added during construction."
            }, {
                title: 'Tab 2',
                loader: {
                    url: 'Test/Contents.aspx',
                    contentType: 'aspx',
                    loadMask: true
                },
                listeners: {
                    activate: function (tab) {
                        tab.loader.load();
                    }
                }
            }, {
                title: 'Tab 3',
                loader: {
                    url: 'Test/Contents.aspx',
                    contentType: 'html',
                    autoLoad: true,
                    params: 'foo=123&bar=abc'
                }
            }
        ]
        });
    });
    </script>
</head>
<body>
    <div id="dvTab"></div>
</body>
</html>
